//
//  StringUtil.h
//  EpointMobileFrame
//
//  Created by 李 亚春 on 12-11-8.
//  Copyright (c) 2012年 epoint. All rights reserved.
//

#import <Foundation/Foundation.h>

#define HTMLSTYPE1 @"<style>#oschina_title {color: #000000; margin-bottom: 6px;font-weight:bold;}#oschina_title img{vertical-align:middle;margin-right:6px;}#oschina_title a{color:#0D6DA8;}#oschina_outline {color: #707070; font-size:12px;}#oschina_outline a{color:#0D6DA8;}#epoint_sender{color:#000033; font-size:12px;}#oschina_software{color:#808080;font-size:12px}#oschina_body img {max-width: 300px;}#oschina_body{font-size:16px;max-width:300px;line-height:24px;} #oschina_body table{max-width:300px;}#oschina_body pre {font-size:9pt;font-family:Courier New,Arial;border:1px solid #ddd;border-left:5px solid #6CE26C;background:#f6f6f6;padding:5px;}</style>"

@interface StringUtil : NSObject

//过滤xml特殊字符
+(NSString *)filterXmlString:(NSString *)origionStr;

+(NSString *)switchXML2Origion:(NSString *)_xml;

//去掉字符串左右空白
+(NSString *)trim:(NSString *)desString;

//截取一个xml标签之间的属性 
+(NSString *)getXMLFormatedAttribute:(NSString *)bs :(NSString *)xmltag;

//截取一个xml，包含被截取的标签
+(NSString *)getXMLFormatedAttributeIncludeTag:(NSString *)bs :(NSString *)xmltag;

//判断字符串是否包含另一个字符串
+(BOOL)contains:(NSString *)bs :(NSString *)child;

//创建UUID
+(NSString *) gen_uuid;

@end
